package com.cy.pj.goods.testservice;

import com.cy.pj.goods.pojo.Goods;
import com.cy.service.GoodsService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class testGoodsService {
    @Autowired
    private GoodsService goodsService;

    @Test
    void runTime(){
        List<Goods> list=goodsService.runtime();
        for (Goods ls:list){
            System.out.println(ls);
        }
    }
}
